<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:rg="http://www.ruijie.com.cn/faces/ui"
	xmlns:c="http://java.sun.com/jstl/core"
	template="/layout/contentLayout.xhtml">
	<ui:param name="param_pageTitle"
		value="#{messages.luyuan_crm_member_onlineUser_list}" />
	<ui:param name="param_navigationUrl"
		value="/luyuan/member/navigationUser.jsf" />
	<ui:param name="param_selectedMenuName" value="userMenu" />

	<ui:define name="road">
		#{messages.luyuan_crm_member_onlineUser_list}
	</ui:define>

	<ui:define name="content">
		<!-- 弧形外观 -->
		<h:form id="userForm">
		<rg:areaPanel>

				<rg:areaPanel type="searchPanel" style="margin: 10px 0;">
					<rg:fieldSet column="auto">
					<rg:inputText id="sUserName" label="#{messages.luyuan_member_name}"
						value="#{onlineMemberAction.criteria.memberName}" />
					<h:commandButton styleClass="button" value="查询" />
					</rg:fieldSet>
				</rg:areaPanel>

				<h:panelGroup id="userTableGroup" >
					<rg:table id="deviceTable"
						value="#{onlineMemberAction.getTableModel()}" var="entity"
						columnConfigurable="disable">
						<rg:column property="loginIp"
							title="#{messages.luyuan_member_loginIp}" />
						<rg:column property="memberName"
							title="#{messages.luyuan_member_name}" />
                    	<rg:column property="member.memberIntegral.memberLevel" converter="#{memberLevelConverter}" title="会员等级" />
                    	<rg:column property="member.memberIntegral.currentIntegral" title="会员积分" />
						<rg:column property="loginTime"
							title="#{messages.luyuan_member_loginTime}" />
	                   <rg:column cellType="oper"
	                                title="#{messages.crud_tbl_operate_label}" width="220">
	                                <ul class="links">
	                                    <li><h:commandLink 
	                                        onclick="UI.instance.showDialog({id:'add', src:'/luyuan/sale/orderListForMember.jsf?memberId=#{entity.member.id}'});">查看订单</h:commandLink>
	                                    </li>
	                                    <li><h:outputLink value="#"
	                                        onclick="UI.instance.showDialog({id:'detail', src:'/luyuan/member/detailUser.jsf?memberId=#{entity.member.id}'});">会员信息</h:outputLink>
	                                    </li>
	                                </ul>
	                 </rg:column>
					</rg:table>
				</h:panelGroup>
			</rg:areaPanel>
		</h:form>
	</ui:define>
</ui:composition>